<?php
    $sku = $this->getData("sku");
    $sku = trim($sku);
    $_product = Mage::getModel("catalog/product")->loadByAttribute("sku",$sku); ?>

    <?php if(empty($_product)):?>
        <div class="qty">
            <input type="text"  class="quantity" name=""  value="1" />
            <input type="text" 	class="nbs sku" name="sku" value="<?php echo $sku ?>" />
        </div>
        <div class="info invalid">
            <?php echo $this->__("Invalid data From Item #") ?>
        </div>
        <div class="price-items">
        </div>
        <?php return; ?>
    <?php else: ?>
        <?php $typeId = $_product->getTypeId();   ?>
        <?php if($typeId!=TYPE_SIMPLE): ?>
                <div class="qty">
                    <input type="text"  class="quantity" name=""  value="1"/>
                    <input type="text" 	class="nbs sku" name="sku" value="<?php echo $sku ?>" />
                </div>
                <div class="info invalid">
                    <?php echo $this->__("Invalid data From Item #") ?>
                </div>
                <div class="price-items">
                </div>
               <?php return; ?>
        <?php endif;?>
    <?php endif;?>
<div class="qty">
    <input type="hidden" name="products[]" value="<?php echo $_product->getId() ?>" />
    <input type="text"  class="quantity" name="qty<?php echo $_product->getId() ?>"  value="1"/>
    <input type="text" 	class="nbs sku" name="sku" value="<?php echo $sku ?>" />
</div>
<div class="info">
     <img src="<?php echo $this->helper('catalog/image')->init($_product, 'image')->resize(PRODUCTBUILDYOURORDER_WIDTH,PRODUCTBUILDYOURORDER_HEIGHT); ?>"   alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'image'), null, true) ?>" />
     <div class="info-items">
        <p class="name"><?php echo $_product->getName() ?></p>
        <p>
            <span><strong><?php echo $this->__("Brand:") ?></strong> Birosaw </span>
            <span> <strong><?php echo $this->__("Sku #:") ?></strong> <?php echo $_product->getName() ?></span>
            <span><strong>Model #:</strong> 246532</span>
        </p>
    </div>
</div>
<div class="price-items">
    <?php $formattedPrice = Mage::helper('core')->currency($_product->getFinalPrice(),true,false); ?>
    <span><strong><?php echo $this->__("Price:") ?></strong> <?php echo $formattedPrice ?></span>
</div>
   
